package com.ktgj.flight.api.domain;

import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单对象 business_order
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
public class BusinessOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long orderId;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String businessType;

    /** 订单号 */
    @Excel(name = "订单号")
    private String ordernum;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal price;

    /** 支付方式（1快钱、2银联手机、3银联在线、4支付宝、5微信） */
    @Excel(name = "支付方式", readConverterExp = "1=快钱、2银联手机、3银联在线、4支付宝、5微信")
    private String payType;

    /** 第三方支付订单号 */
    @Excel(name = "第三方支付订单号")
    private String partyPayNum;

    /** 支付状态 10-已锁定；20-待支付；30-支付成功；40-支付失败；50-取消 */
    @Excel(name = "支付状态 10-已锁定；20-待支付；30-支付成功；40-支付失败；50-取消")
    private String state;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal usedMoney;

    /** 积分 */
    @Excel(name = "积分")
    private Long creditsNum;

    /** 会员的抵扣卷id */
    @Excel(name = "会员的抵扣卷id")
    private Long usedCouponId;

    /** 抵扣劵抵扣金额 */
    @Excel(name = "抵扣劵抵扣金额")
    private BigDecimal usedCoupon;

    /** 预留款金额 */
    @Excel(name = "预留款金额")
    private BigDecimal usedDeposit;

    /** 会员编号 */
    @Excel(name = "会员编号")
    private Long customerId;

    /** 创建员工ID */
    @Excel(name = "创建员工ID")
    private Long createDemployeeId;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String address;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contactInformation;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderState;

    /** 发票类型0-未知；1-个人；2-公司 */
    @Excel(name = "发票类型0-未知；1-个人；2-公司")
    private String invoiceTitletype;

    /** 发票抬头 */
    @Excel(name = "发票抬头")
    private String invoiceTitle;

    /** 纳税人识别码 */
    @Excel(name = "纳税人识别码")
    private String taxpayerNum;

    /** 开票地址 */
    @Excel(name = "开票地址")
    private String invoiceAddresss;

    /** 开票电话 */
    @Excel(name = "开票电话")
    private String invoicePhone;

    /** 发票开户行 */
    @Excel(name = "发票开户行")
    private String invoiceBankName;

    /** 开票银行账号 */
    @Excel(name = "开票银行账号")
    private String invoiceCreditCard;

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setBusinessType(String businessType)
    {
        this.businessType = businessType;
    }

    public String getBusinessType()
    {
        return businessType;
    }
    public void setOrdernum(String ordernum)
    {
        this.ordernum = ordernum;
    }

    public String getOrdernum()
    {
        return ordernum;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setPayType(String payType)
    {
        this.payType = payType;
    }

    public String getPayType()
    {
        return payType;
    }
    public void setPartyPayNum(String partyPayNum)
    {
        this.partyPayNum = partyPayNum;
    }

    public String getPartyPayNum()
    {
        return partyPayNum;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setUsedMoney(BigDecimal usedMoney)
    {
        this.usedMoney = usedMoney;
    }

    public BigDecimal getUsedMoney()
    {
        return usedMoney;
    }
    public void setCreditsNum(Long creditsNum)
    {
        this.creditsNum = creditsNum;
    }

    public Long getCreditsNum()
    {
        return creditsNum;
    }
    public void setUsedCouponId(Long usedCouponId)
    {
        this.usedCouponId = usedCouponId;
    }

    public Long getUsedCouponId()
    {
        return usedCouponId;
    }
    public void setUsedCoupon(BigDecimal usedCoupon)
    {
        this.usedCoupon = usedCoupon;
    }

    public BigDecimal getUsedCoupon()
    {
        return usedCoupon;
    }
    public void setUsedDeposit(BigDecimal usedDeposit)
    {
        this.usedDeposit = usedDeposit;
    }

    public BigDecimal getUsedDeposit()
    {
        return usedDeposit;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setCreateDemployeeId(Long createDemployeeId)
    {
        this.createDemployeeId = createDemployeeId;
    }

    public Long getCreateDemployeeId()
    {
        return createDemployeeId;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setContacts(String contacts)
    {
        this.contacts = contacts;
    }

    public String getContacts()
    {
        return contacts;
    }
    public void setContactInformation(String contactInformation)
    {
        this.contactInformation = contactInformation;
    }

    public String getContactInformation()
    {
        return contactInformation;
    }
    public void setOrderState(String orderState)
    {
        this.orderState = orderState;
    }

    public String getOrderState()
    {
        return orderState;
    }
    public void setInvoiceTitletype(String invoiceTitletype)
    {
        this.invoiceTitletype = invoiceTitletype;
    }

    public String getInvoiceTitletype()
    {
        return invoiceTitletype;
    }
    public void setInvoiceTitle(String invoiceTitle)
    {
        this.invoiceTitle = invoiceTitle;
    }

    public String getInvoiceTitle()
    {
        return invoiceTitle;
    }
    public void setTaxpayerNum(String taxpayerNum)
    {
        this.taxpayerNum = taxpayerNum;
    }

    public String getTaxpayerNum()
    {
        return taxpayerNum;
    }
    public void setInvoiceAddresss(String invoiceAddresss)
    {
        this.invoiceAddresss = invoiceAddresss;
    }

    public String getInvoiceAddresss()
    {
        return invoiceAddresss;
    }
    public void setInvoicePhone(String invoicePhone)
    {
        this.invoicePhone = invoicePhone;
    }

    public String getInvoicePhone()
    {
        return invoicePhone;
    }
    public void setInvoiceBankName(String invoiceBankName)
    {
        this.invoiceBankName = invoiceBankName;
    }

    public String getInvoiceBankName()
    {
        return invoiceBankName;
    }
    public void setInvoiceCreditCard(String invoiceCreditCard)
    {
        this.invoiceCreditCard = invoiceCreditCard;
    }

    public String getInvoiceCreditCard()
    {
        return invoiceCreditCard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("businessType", getBusinessType())
                .append("ordernum", getOrdernum())
                .append("price", getPrice())
                .append("payType", getPayType())
                .append("partyPayNum", getPartyPayNum())
                .append("state", getState())
                .append("usedMoney", getUsedMoney())
                .append("creditsNum", getCreditsNum())
                .append("usedCouponId", getUsedCouponId())
                .append("usedCoupon", getUsedCoupon())
                .append("usedDeposit", getUsedDeposit())
                .append("customerId", getCustomerId())
                .append("createTime", getCreateTime())
                .append("createDemployeeId", getCreateDemployeeId())
                .append("address", getAddress())
                .append("contacts", getContacts())
                .append("contactInformation", getContactInformation())
                .append("orderState", getOrderState())
                .append("invoiceTitletype", getInvoiceTitletype())
                .append("invoiceTitle", getInvoiceTitle())
                .append("taxpayerNum", getTaxpayerNum())
                .append("invoiceAddresss", getInvoiceAddresss())
                .append("invoicePhone", getInvoicePhone())
                .append("invoiceBankName", getInvoiceBankName())
                .append("invoiceCreditCard", getInvoiceCreditCard())
                .toString();
    }
}
